<script setup>
import {useRoute} from "vue-router"
let route = useRoute();

//获取键值对参数
let id = route.query.id;
let name = route.query.name;


//获取路径参数
let pathId = route.params.id;      //点的是占位符的名字
let pathName = route.params.name;



</script>

<template>
  <div>
    list首页{{ id }}        ,,,,,,,,,,       {{ name }} 
    <br>
    {{ pathId }} ^^^^^^^^^^^^^^^^^{{ pathName }}
  </div>
  
</template>

<style scoped>

</style>